package top.btcmarket.auth.mapper;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import top.btcmarket.auth.entity.User;


@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    User findByUsername(String name);
    
    User findByUsernameAndPassword(String name,String pwd);
    
    User findById(int id);

}
